<template>
  <div class="header">
    <span>
      <i :class="icon" @click="fn"></i>
    </span>
    <div class="title">{{title}}</div>
    <span>{{right}}</span>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: ["title", "icon", "right"],
  methods: {
    fn() {
      this.$parent.bln = !this.$parent.bln;
      // this.$parent.bln2 = !this.$parent.bln;
      this.$emit("back");
    },
  }
};
</script>
<style scoped>
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.88rem;
  background: #000;
  font-size: 18px;
  line-height: 0.88rem;
  color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 0 0.2rem;
}
span {
  display: inline-block;
}
.title {
  flex: 1;
  text-align: center;
}
</style>
